<template>
  <div id="app">
    <img alt="Vue logo" src="./assets/logo.png">
    <CodesInput
      :length="8"
      is-upper-case
      @complete="handleComplete"
    />
    <HelloWorld :msg="msg"></HelloWorld>
  </div>
</template>

<script>
import CodesInput from './components/CodesInput.vue'
import HelloWorld from './components/HelloWorld.vue'

export default {
  name: 'App',
  components: {
    CodesInput,
    HelloWorld
  },
  data() {
    return {
      msg: ''
    }
  },
  methods: {
    handleComplete(data) {
      console.log('handleComplete', data)
      this.msg = data
    }
  }
}
</script>

<style lang="stylus">
#app
  font-family Avenir, Helvetica, Arial, sans-serif
  -webkit-font-smoothing antialiased
  -moz-osx-font-smoothing grayscale
  text-align center
  color #2c3e50
  margin-top 60px
</style>
